package tpoo.server.dao.mock;



import tpoo.server.dao.UserDAO;
import tpoo.server.model.users.User;

public class MockUserDAO implements UserDAO {

	private Long currentID = 0L;
	
	public User getByUsername(String name) {
		User found = null;
		if (name.contains("go")){
			found = new User(name,currentID++);
		}
		return found;			
	}

	public String getEntityName() {
		return "User";
	}

}
